package config;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.commons.dbutils.QueryRunner;
import org.springframework.context.annotation.*;

import javax.sql.DataSource;

@Configuration//配置过这个注解后就相当于充当了bean.xml文件
@ComponentScan(basePackages = {"com.zm","config"})//配置要扫描的包，还有其他配置类的包
@Import(JdbcConfigruation.class)
@PropertySource("classpath:config-db.properties")
public class SpringConfiguration {
//该类是一个主配置文件


}
